home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000012_jdanskinner@compuserve.com_Tue Nov 25 09:49:51 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: "Dan Skinner" <jdanskinner@compuserve.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Can Kermit check for a timeout condition or set one ?
Date: Mon, 24 Nov 2003 21:48:40 -0600
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <vs5k8vq12hj58e@corp.supernews.com>
References: <f0bb0f39.0311241204.2faa2067@posting.google.com> <slrnbs4qn0.2c9.fdc@sesame.cc.columbia.edu>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Complaints-To: abuse@supernews.com
Lines: 34
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14688
"Frank da Cruz" <fdc@columbia.edu> wrote in message
news:slrnbs4qn0.2c9.fdc@sesame.cc.columbia.edu...
> In article <f0bb0f39.0311241204.2faa2067@posting.google.com>,
> newexpectuser wrote:
> : I am using ssh to connect to a server via a Kermit Script.
> :
> : I don't want the script to still be running if it cannot connect, can
> : Kermit check for a successful connection or a timeout condition and
> : after this timeout, to give a message "Cannot connect...check other
> : server".
> :
If you are using K95 you might try
set host /net:ssh <server> /user:xxx /password:zzz
and process result.
If you are using *nix kermit you might try
set host <server> 22
If it is an SSH server port it obviously will not connect, but the result
will tell
you it is an SSH server.
If it says I'm an SSH server then do ssh <server>
if not, just move on.
Good Luck.
Regards...Dan.
> Internet connections will time out eventually if they can't be made.
> The timeout occurs in the TCP/IP stack, not in Kermit. The SET HOST
> command will fail eventually.
>
> - Frank